import { dashboardBreadcrumb } from "@/router/routes/dashboard/dashboard";

export const permissionBreadcrumb = [
  ...dashboardBreadcrumb,
  { title: "权限", path: "" },
];

export default [
  {
    path: "/permission/menu",
    name: "CONTROL_PERMISSION_MENU",
    component: () =>
      import(
        /* webpackChunkName: "CONTROL_PERMISSION_MENU" */ "@/views/permission/menu/menu.vue"
      ),
    meta: {
      title: "菜单",
      isKeepAlive: true,
      breadcrumbList: [...permissionBreadcrumb, { title: "菜单", path: "" }],
    },
  },

  {
    path: "/permission/role",
    name: "CONTROL_PERMISSION_ROLE",
    component: () =>
      import(
        /* webpackChunkName: "CONTROL_PERMISSION_ROLE" */ "@/views/permission/role/role.vue"
      ),
    meta: {
      title: "角色",
      isKeepAlive: true,
      breadcrumbList: [...permissionBreadcrumb, { title: "角色", path: "" }],
    },
  },

  {
    path: "/permission/user",
    name: "CONTROL_PERMISSION_USER",
    component: () =>
      import(
        /* webpackChunkName: "CONTROL_PERMISSION_USER" */ "@/views/permission/user/user.vue"
      ),
    meta: {
      title: "用户",
      isKeepAlive: true,
      breadcrumbList: [...permissionBreadcrumb, { title: "用户", path: "" }],
    },
  },
];
